package com.glory.wxelectricitypda.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.wxelectricitypda.R;
import com.glory.wxelectricitypda.bean.EqpEntoty;

import java.util.List;


public class MaterielDataAdapter extends BaseQuickAdapter<EqpEntoty.MaterierlBean, BaseViewHolder> {
    public MaterielDataAdapter(@Nullable List<EqpEntoty.MaterierlBean> data) {
        super(R.layout.adapter_materierl, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, EqpEntoty.MaterierlBean item) {
        helper.setText(R.id.tvPosition,item.getPOSITION());
        helper.setText(R.id.tvmLotid,item.getMLOTID());
        helper.setText(R.id.tvMaterialDesc,item.getMATERIALDESC());
        helper.setText(R.id.tvSubmatType,item.getMATERIALTYPE());
        helper.addOnClickListener(R.id.tvMateriaDown);
    }
}
